{% get_blocks route={routes.current_route} route_handle={routes.current_route_handle} limit=40 %}

{% assign is_default = true %}

{% for block in blocks %}
  {% if block.type != 'header' and block.type != 'footer' %}
    {% assign is_default = false %}
  {% endif %}
{% endfor %}



{%- if is_default -%}
  {% section "blog_detail" %}
{%- else -%}
  {% template block_main , { blocks:blocks,blog: blog } %}
{%- endif -%}
